package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.IflightRefundandpassengerMapper;
import com.ktgj.flight.domain.IflightRefundandpassenger;
import com.ktgj.flight.service.IIflightRefundandpassengerService;

/**
 * 国际机票退票订单明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-31
 */
@Service
public class IflightRefundandpassengerServiceImpl implements IIflightRefundandpassengerService 
{
    @Autowired
    private IflightRefundandpassengerMapper iflightRefundandpassengerMapper;

    /**
     * 查询国际机票退票订单明细
     * 
     * @param rpid 国际机票退票订单明细ID
     * @return 国际机票退票订单明细
     */
    @Override
    public IflightRefundandpassenger selectIflightRefundandpassengerById(Long rpid)
    {
        return iflightRefundandpassengerMapper.selectIflightRefundandpassengerById(rpid);
    }

    /**
     * 查询国际机票退票订单明细列表
     * 
     * @param iflightRefundandpassenger 国际机票退票订单明细
     * @return 国际机票退票订单明细
     */
    @Override
    public List<IflightRefundandpassenger> selectIflightRefundandpassengerList(IflightRefundandpassenger iflightRefundandpassenger)
    {
        return iflightRefundandpassengerMapper.selectIflightRefundandpassengerList(iflightRefundandpassenger);
    }

    /**
     * 新增国际机票退票订单明细
     * 
     * @param iflightRefundandpassenger 国际机票退票订单明细
     * @return 结果
     */
    @Override
    public int insertIflightRefundandpassenger(IflightRefundandpassenger iflightRefundandpassenger)
    {
        return iflightRefundandpassengerMapper.insertIflightRefundandpassenger(iflightRefundandpassenger);
    }

    /**
     * 修改国际机票退票订单明细
     * 
     * @param iflightRefundandpassenger 国际机票退票订单明细
     * @return 结果
     */
    @Override
    public int updateIflightRefundandpassenger(IflightRefundandpassenger iflightRefundandpassenger)
    {
        return iflightRefundandpassengerMapper.updateIflightRefundandpassenger(iflightRefundandpassenger);
    }

    /**
     * 批量删除国际机票退票订单明细
     * 
     * @param rpids 需要删除的国际机票退票订单明细ID
     * @return 结果
     */
    @Override
    public int deleteIflightRefundandpassengerByIds(Long[] rpids)
    {
        return iflightRefundandpassengerMapper.deleteIflightRefundandpassengerByIds(rpids);
    }

    /**
     * 删除国际机票退票订单明细信息
     * 
     * @param rpid 国际机票退票订单明细ID
     * @return 结果
     */
    @Override
    public int deleteIflightRefundandpassengerById(Long rpid)
    {
        return iflightRefundandpassengerMapper.deleteIflightRefundandpassengerById(rpid);
    }
}
